<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>同城货运运单查询系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../dist/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../dist/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="../dist/css/skins/all-skins.min.css">

    <!--http://aimodu.org:7777/admin/index_iframe.html?q=audio&search=#-->
    <style type="text/css">
        html {
            overflow: hidden;
        }
    </style>
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="../plugins/ie9/html5shiv.min.js"></script>
    <script src="../plugins/ie9/respond.min.js"></script>
    <![endif]-->
</head>
<body class="hold-transition skin-blue sidebar-mini fixed">
<div class="wrapper">

    <header class="main-header">
        <!-- Logo -->
        <a href="#" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini" style="font-size: 14px"><b>系统</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg" style="font-size: 15px"><b>同城货运---运单查询系统</b></span>
        </a>
        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>

            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- Messages: style can be found in dropdown.less-->
                    <!--<li class="dropdown messages-menu">-->
                        <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
                            <!--<i class="fa fa-envelope-o"></i>-->
                            <!--<span class="label label-success">4</span>-->
                        <!--</a>-->
                        <!--<ul class="dropdown-menu">-->
                            <!--<li class="header">You have 4 messages</li>-->
                            <!--<li>-->
                                <!--&lt;!&ndash; inner menu: contains the actual data &ndash;&gt;-->
                                <!--<ul class="menu">-->
                                    <!--<li>&lt;!&ndash; start message &ndash;&gt;-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="../dist/img/peoplelogo.jpg" class="img-circle"-->
                                                     <!--alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Support Team-->
                                                <!--<small><i class="fa fa-clock-o"></i> 5 mins</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--&lt;!&ndash; end message &ndash;&gt;-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="../dist/img/user3-128x128.jpg" class="img-circle"-->
                                                     <!--alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--AdminLTE Design Team-->
                                                <!--<small><i class="fa fa-clock-o"></i> 2 hours</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="../dist/img/user4-128x128.jpg" class="img-circle"-->
                                                     <!--alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Developers-->
                                                <!--<small><i class="fa fa-clock-o"></i> Today</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="../dist/img/user3-128x128.jpg" class="img-circle"-->
                                                     <!--alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Sales Department-->
                                                <!--<small><i class="fa fa-clock-o"></i> Yesterday</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<div class="pull-left">-->
                                                <!--<img src="../dist/img/user4-128x128.jpg" class="img-circle"-->
                                                     <!--alt="User Image">-->
                                            <!--</div>-->
                                            <!--<h4>-->
                                                <!--Reviewers-->
                                                <!--<small><i class="fa fa-clock-o"></i> 2 days</small>-->
                                            <!--</h4>-->
                                            <!--<p>Why not buy a new awesome theme?</p>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                <!--</ul>-->
                            <!--</li>-->
                            <!--<li class="footer"><a href="#">See All Messages</a></li>-->
                        <!--</ul>-->
                    <!--</li>-->
                    <!--&lt;!&ndash; Notifications: style can be found in dropdown.less &ndash;&gt;-->
                    <!--<li class="dropdown notifications-menu">-->
                        <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
                            <!--<i class="fa fa-bell-o"></i>-->
                            <!--<span class="label label-warning">10</span>-->
                        <!--</a>-->
                        <!--<ul class="dropdown-menu">-->
                            <!--<li class="header">You have 10 notifications</li>-->
                            <!--<li>-->
                                <!--&lt;!&ndash; inner menu: contains the actual data &ndash;&gt;-->
                                <!--<ul class="menu">-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<i class="fa fa-users text-aqua"></i> 5 new members joined today-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<i class="fa fa-warning text-yellow"></i> Very long description here that-->
                                            <!--may not fit into the-->
                                            <!--page and may cause design problems-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<i class="fa fa-users text-red"></i> 5 new members joined-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<i class="fa fa-shopping-cart text-green"></i> 25 sales made-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--<li>-->
                                        <!--<a href="#">-->
                                            <!--<i class="fa fa-user text-light-blue"></i> You changed your username-->
                                        <!--</a>-->
                                    <!--</li>-->
                                <!--</ul>-->
                            <!--</li>-->
                            <!--<li class="footer"><a href="#">View all</a></li>-->
                        <!--</ul>-->
                    <!--</li>-->
                    <!--&lt;!&ndash; Tasks: style can be found in dropdown.less &ndash;&gt;-->
                    <!--<li class="dropdown tasks-menu">-->
                        <!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
                            <!--<i class="fa fa-flag-o"></i>-->
                            <!--<span class="label label-danger">9</span>-->
                        <!--</a>-->
                        <!--<ul class="dropdown-menu">-->
                            <!--<li class="header">You have 9 tasks</li>-->
                            <!--<li>-->
                                <!--&lt;!&ndash; inner menu: contains the actual data &ndash;&gt;-->
                                <!--<ul class="menu">-->
                                    <!--<li>&lt;!&ndash; Task item &ndash;&gt;-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Design some buttons-->
                                                <!--<small class="pull-right">20%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-aqua" style="width: 20%"-->
                                                     <!--role="progressbar" aria-valuenow="20" aria-valuemin="0"-->
                                                     <!--aria-valuemax="100">-->
                                                    <!--<span class="sr-only">20% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--&lt;!&ndash; end task item &ndash;&gt;-->
                                    <!--<li>&lt;!&ndash; Task item &ndash;&gt;-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Create a nice theme-->
                                                <!--<small class="pull-right">40%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-green" style="width: 40%"-->
                                                     <!--role="progressbar" aria-valuenow="20" aria-valuemin="0"-->
                                                     <!--aria-valuemax="100">-->
                                                    <!--<span class="sr-only">40% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--&lt;!&ndash; end task item &ndash;&gt;-->
                                    <!--<li>&lt;!&ndash; Task item &ndash;&gt;-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Some task I need to do-->
                                                <!--<small class="pull-right">60%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-red" style="width: 60%"-->
                                                     <!--role="progressbar" aria-valuenow="20" aria-valuemin="0"-->
                                                     <!--aria-valuemax="100">-->
                                                    <!--<span class="sr-only">60% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--&lt;!&ndash; end task item &ndash;&gt;-->
                                    <!--<li>&lt;!&ndash; Task item &ndash;&gt;-->
                                        <!--<a href="#">-->
                                            <!--<h3>-->
                                                <!--Make beautiful transitions-->
                                                <!--<small class="pull-right">80%</small>-->
                                            <!--</h3>-->
                                            <!--<div class="progress xs">-->
                                                <!--<div class="progress-bar progress-bar-yellow" style="width: 80%"-->
                                                     <!--role="progressbar" aria-valuenow="20" aria-valuemin="0"-->
                                                     <!--aria-valuemax="100">-->
                                                    <!--<span class="sr-only">80% Complete</span>-->
                                                <!--</div>-->
                                            <!--</div>-->
                                        <!--</a>-->
                                    <!--</li>-->
                                    <!--&lt;!&ndash; end task item &ndash;&gt;-->
                                <!--</ul>-->
                            <!--</li>-->
                            <!--<li class="footer">-->
                                <!--<a href="#">View all tasks</a>-->
                            <!--</li>-->
                        <!--</ul>-->
                    <!--</li>-->
                    <!-- User Account: style can be found in dropdown.less -->
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="../dist/img/peoplelogo.jpg" class="user-image" alt="User Image">
                            <span class="hidden-xs" id="manager_name">请登录</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- User image -->
                            <li class="user-header">
                                <img src="../dist/img/peoplelogo.jpg" class="img-circle" alt="User Image">
                                <p id="manager_info">
                                    XXX地区管理者
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" class="btn btn-default btn-flat">详细信息</a>
                                </div>
                                <div class="pull-right">
                                    <a id="manager_logout" class="btn btn-default btn-flat">退出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="../dist/img/area.jpg" class="img-circle" alt="Area Image">
                </div>
                <div class="pull-left info">
                    <p id="manager_area" style="line-height: 3">系统菜单</p>
                </div>
            </div>
            <!-- search form -->
            <form action="#" method="get" class="sidebar-form">
                <div class="input-group">
                    <input type="text" name="q" class="form-control" placeholder="搜索...">
                    <span class="input-group-btn">
                <button type="button" name="search" id="search-btn" class="btn btn-flat" onclick="search_menu()"><i
                        class="fa fa-search"></i>
                </button>
              </span>
                </div>
            </form>
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">

            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" id="content-wrapper" style="min-height: 421px;">
        <!--bootstrap tab风格 多标签页-->
        <div class="content-tabs">
            <button class="roll-nav roll-left tabLeft" onclick="scrollTabLeft()">
                <i class="fa fa-backward"></i>
            </button>
            <nav class="page-tabs menuTabs tab-ui-menu" id="tab-menu">
                <div class="page-tabs-content" style="margin-left: 0px;">

                </div>
            </nav>
            <button class="roll-nav roll-right tabRight" onclick="scrollTabRight()">
                <i class="fa fa-forward" style="margin-left: 3px;"></i>
            </button>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown tabClose" data-toggle="dropdown">
                    页签操作<i class="fa fa-caret-down" style="padding-left: 3px;"></i>
                </button>
                <ul class="dropdown-menu dropdown-menu-right" style="min-width: 128px;">
                    <li><a class="tabReload" href="javascript:refreshTab();">刷新当前</a></li>
                    <li><a class="tabCloseCurrent" href="javascript:closeCurrentTab();">关闭当前</a></li>
                    <li><a class="tabCloseAll" href="javascript:closeOtherTabs(true);">全部关闭</a></li>
                    <li><a class="tabCloseOther" href="javascript:closeOtherTabs();">除此之外全部关闭</a></li>
                </ul>
            </div>
            <button class="roll-nav roll-right fullscreen" onclick="App.handleFullScreen()"><i
                    class="fa fa-arrows-alt"></i></button>
        </div>
        <div class="content-iframe " style="background-color: #ffffff; ">
            <div class="tab-content " id="tab-content">

            </div>
        </div>
    </div>
    <!-- /.content-wrapper -->

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 2.0.1
        </div>
        <strong>Copyright &copy; 2018-2020 同城货运运单查询系统.</strong> All rights
        reserved.
    </footer>

</div>
<!-- ./wrapper -->

<!-- jQuery 2.2.3 -->
<script src="../plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../bootstrap/js/bootstrap.min.js"></script>
<!-- Slimscroll -->
<script src="../plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="../plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/app.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>

<!--tabs-->
<script src="../dist/js/app_iframe.js"></script>

<!--<script src="../dist/js/jquery.blockui.min.js"></script>
<script src="../dist/js/appx.js"></script>
<script src="../dist/js/bootstrap-tab.js"></script>
<script src="../dist/js/sidebarMenu.js"></script>-->

<script type="text/javascript">
    /**
     * 本地搜索菜单
     */
    function search_menu() {
        //要搜索的值
        var text = $('input[name=q]').val();

        var $ul = $('.sidebar-menu');
        $ul.find("a.nav-link").each(function () {
            var $a = $(this).css("border", "");

            //判断是否含有要搜索的字符串
            if ($a.children("span.menu-text").text().indexOf(text) >= 0) {

                //如果a标签的父级是隐藏的就展开
                $ul = $a.parents("ul");

                if ($ul.is(":hidden")) {
                    $a.parents("ul").prev().click();
                }

                //点击该菜单
                $a.click().css("border", "1px solid");

//                return false;
            }
        });
    }

    $(function () {
//        console.log(window.location);

        App.setbasePath("../");
        App.setGlobalImgPath("dist/img/");

        addTabs({
            id: '10008',
            title: '运单地图分布',
            close: false,
            url: 'UI/gaodemap.html',
            urlType: "relative"
        });

        App.fixIframeCotent();

        /*addTabs({
         id: '10009',
         title: '404',
         close: true,
         url: 'UI/buttons_iframe2.html'
         });*/

        /*
         <li class="treeview">
         <a href="#">
         <i class="fa fa-edit"></i> <span>Forms</span>
         <span class="pull-right-container">
         <i class="fa fa-angle-left pull-right"></i>
         </span>
         </a>
         <ul class="treeview-menu">
         <li><a href="forms/general.html"><i class="fa fa-circle-o"></i> General Elements</a></li>
         <li><a href="forms/advanced.html"><i class="fa fa-circle-o"></i> Advanced Elements</a></li>
         <li><a href="forms/editors.html"><i class="fa fa-circle-o"></i> Editors</a></li>
         </ul>
         </li>
         */
        var menus = [
            {
                id: "9000",
                text: "header",
                icon: "",
                isHeader: true
            },
            {
                id: "9001",
                text: "辖区总览",
                icon: "fa fa-edit",
                children: [
//                    {
//                        id: "90011",
//                        text: "地图模块化",
//                        url: "UI/modularizemap.html",
//                        targetType: "iframe-tab",
//                        icon: "fa fa-circle-o",
//                        urlType: 'abosulte'
//                    },
                    {
                        id: "90011",
                        text: "查看项目接口",
                        url: "/transport/swagger-ui.html",
                        targetType: "iframe-tab",
                        icon: "fa fa-circle-o",
                        urlType: 'abosulte'
                    }
                ]
            },
            {
                id: "9002",
                text: "用户管理",
                icon: "fa fa-edit",
                children: [
                    {
                        id: "90021",
                        text: "承运员管理",
                        url: "UI/userbaobiao.html",
                        targetType: "iframe-tab",
                        icon: "fa fa-circle-o",
                        urlType: 'abosulte'
                    },
                    {
                        id: "90022",
                        text: "公司管理",
                        url: "UI/companybaobiao.html",
                        targetType: "iframe-tab",
                        icon: "fa fa-circle-o",
                        urlType: 'abosulte'
                    },
                    {
                        id: "90023",
                        text: "商户管理",
                        url: "UI/shopbaobiao.html",
                        targetType: "iframe-tab",
                        icon: "fa fa-circle-o",
                        urlType: 'abosulte'
                    }
                ]
            },
            {
                id: "9003",
                text: "运单管理",
                icon: "fa fa-edit",
                children: [
                    {
                        id: "90031",
                        text: "商户下单报表",
                        url: "https://www.baidu.com",
                        targetType: "iframe-tab",
                        icon: "fa fa-circle-o",
                        children: [
                            {
                                id: "900311",
                                text: "已完成运单",
                                url: "UI/finishbaobiao.html",
                                targetType: "iframe-tab",
                                icon: "fa fa-circle-o",
                                urlType: 'abosulte'
                            },
                            {
                                id: "900312",
                                text: "未完成运单",
                                url: "UI/unfinishbaobiao.html",
                                targetType: "iframe-tab",
                                icon: "fa fa-circle-o",
                                urlType: 'abosulte'
                            }
                        ]
                    },
                    {
                        id: "90032",
                        text: "物流下单报表",
                        url: "https://www.baidu.com",
                        targetType: "iframe-tab",
                        icon: "fa fa-circle-o",
                        children: [
                            {
                                id: "900321",
                                text: "已完成运单",
                                url: "UI/finishcompanybaobiao.html",
                                targetType: "iframe-tab",
                                icon: "fa fa-circle-o",
                                urlType: 'abosulte'
                            },
                            {
                                id: "900322",
                                text: "未完成运单",
                                url: "UI/unfinishcompanybaobiao.html",
                                targetType: "iframe-tab",
                                icon: "fa fa-circle-o",
                                urlType: 'abosulte'
                            }
                        ]
                    }
                ]
            }
        ];
        $('.sidebar-menu').sidebarMenu({data: menus});

        // 动态创建菜单后，可以重新计算 SlimScroll
        // $.AdminLTE.layout.fixSidebar();

        /*if ($.AdminLTE.options.sidebarSlimScroll) {
            if (typeof $.fn.slimScroll != 'undefined') {
                //Destroy if it exists
                var $sidebar = $(".sidebar");
                $sidebar.slimScroll({destroy: true}).height("auto");
                //Add slimscroll
                $sidebar.slimscroll({
                    height: ($(window).height() - $(".main-header").height()) + "px",
                    color: "rgba(0,0,0,0.2)",
                    size: "3px"
                });
            }
        }*/

        var token = window.localStorage.getItem("transport_token");
        var username = "";
        if (location.search.length > 0) {
            username = unescape(location.search.split('?')[1].split('=')[1]);
        }
        if(username==null || username=="" || token == null || token == ""){
            window.location.href = "login.html";
        }else{
            //获取用户信息
            $.ajax({
                url: "/transport/api/getuserinfo",
                type: "GET",
                data: {"username": username},
                beforeSend: function (XMLHttpRequest) {
                    XMLHttpRequest.setRequestHeader("token", token);
                },
                success: function (data) {
                    try {
                        data = data.data;
                        $("#manager_name").html(data.loginname);
                        $("#manager_info").html(data.loginname);
                        var tel = '<br/><small style="margin-top: 5px">'+"联系方式：" + data.telephone +'</small>';
                        $("#manager_info").append(tel);
                    }catch (Exception){
                        window.localStorage.removeItem("transport_token");
                        window.location.href = "login.html";
                    }
                }
            });

            $("#manager_logout").click(function () {
                //获取用户信息
                $.ajax({
                    url: "/transport/logout",
                    type: "GET",
                    data: {"username": username},
                    beforeSend: function (XMLHttpRequest) {
                        XMLHttpRequest.setRequestHeader("token", window.localStorage.getItem("transport_token"));
                    },
                    success: function (data) {
                        if(data == "success"){
                            window.localStorage.removeItem("transport_token");
                            window.location.href = "login.html";
                        }
                        return true;
                    }
                });
            });
        }
    });
</script>

</body>
</html>